#include<bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
const int N=2e5+10;
#define INF 0x3f3f3f3f;
typedef long long int ll;
#define close(); std::ios::sync_with_stdio(false);cin.tie(0),cout.tie(0);
//----------------------------------------------------------------------------//


int main()
{
	close();
	ll n;
	cin>>n;

	if(n>=1&&n<=7)
	{
		cout<<"very easy"<<'\n';
	}

	else if(n>7&&n<=233)
	{
		cout<<"easy"<<'\n';
	}

	else if(n>233&&n<=10032)
	{
		cout<<"medium"<<'\n';
	}

	else if(n>10032&&n<=114514)
	{
		cout<<"hard"<<'\n';
	}
	else if(n>114514&&n<=1919810)
	{
		cout<<"very hard"<<'\n';
	}
	else
	{
		cout<<"can not imagine"<<'\n';
	}

	return 0;
}